package com.intel.service 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Fintan Boyle
	 */
	public class ServiceEvent extends Event 
	{
		public static const RESULT:String = "result";
		public static const FAULT:String = "fault";
		
		public var message:String;
		public var data:Object;
		
		public function ServiceEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			var ev:ServiceEvent = new ServiceEvent(type, bubbles, cancelable);
			ev.message = this.message;
			ev.data = this.data;
			return ev;
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ServiceEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}